<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
    <i class="{{views[$state.current.name].icon}}"></i>
    {{views[$state.current.name].text}}
    <i class="caret"></i>
</button>
<ul class="dropdown-menu">
    <li ng-class="{'active': $state.current.name===v.state}" ng-repeat="v in views">
        <a href="" ng-click="$state.go(v.state, {id:$stateParams.id})">
            <i class="{{v.icon}}"></i>
            {{v.text}}
        </a>
    </li>
</ul>